import bpy
from ogreEx.blender.types import Menu
from ogreEx.ui.UIClass import OTHER
from ogreEx.ui.operator.CINFO_MT_group import INFO_MT_group

@OTHER
class INFO_MT_groups(Menu):
    bl_label = "Groups"
    
    def draw(self, context):
        layout = self.layout
        for group in bpy.data.groups:
            op = layout.operator(INFO_MT_group.bl_idname, text=group.name)    # operator no variable for button name?
            op.mystring = group.name
        layout.separator()